import request from '@/utils/request'

// 查询实时数据列表
export function listRealTimeData(query) {
  return request({
    url: '/businessInfo/realTimeData/list',
    method: 'get',
    params: query
  })
}

// 查询实时数据详细
export function getRealTimeData(variableId) {
  return request({
    url: '/businessInfo/realTimeData/' + variableId,
    method: 'get'
  })
}

// 新增实时数据
export function addRealTimeData(data) {
  return request({
    url: '/businessInfo/realTimeData',
    method: 'post',
    data: data
  })
}

// 修改实时数据
export function updateRealTimeData(data) {
  return request({
    url: '/businessInfo/realTimeData',
    method: 'put',
    data: data
  })
}

// 删除实时数据
export function delRealTimeData(variableId) {
  return request({
    url: '/businessInfo/realTimeData/' + variableId,
    method: 'delete'
  })
}
